<%@ page pageEncoding="utf-8"%>
<%-- 引入JSTL标签库 --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
	<title>地址管理</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<script type="text/javascript" src="/resources/js/commons.js"></script>
	<link rel="stylesheet" type="text/css" href="/resources/css/commons.css" />
</head>
<body>
	<h2>地址管理</h2>
	<div id="add-clAddress">
		<a href="cl/address/add" target="rightFrame">新增</a>
	</div>
	<hr/>
	<table border="1">
		<tr>
			<th class="width-40">序号</th>
			<th>省</th>
			<th>市</th>
			<th>区/县</th>
			<th>是否默认</th>
			<th class="width-80">操 作</th>
		</tr>

		<!-- 模版数据 -->
	<c:forEach items="${ list }" var="order" varStatus="varStatus">
		<tr>
			<td>${ varStatus.count }</td>
			<td>${ order.province }</td>
			<td>${ order.city }</td>
			<td>${ order.district }</td>
			<td>${ order.detail }</td>
			<td>
				<c:if test="${order.isDefault eq true}">
					<p>已成单<p>
				</c:if>
				<c:if test="${order.state eq false}">
					<p>已出单<p>
				</c:if>
			</td>
			<td>
				<a href="/clAddressDelete?id=${ order.id }" style="color: red;">删除</a>
				|
				<a href="/clAddressInfo?id=${ order.id }">修改</a>
			</td>
		</tr>
	</c:forEach>	
		
		
	</table>
</body>
</html>



